package com.hiwan.system.pojo;

import java.io.Serializable;
import java.util.List;

import com.hiwan.system.common.persistence.BasePojo;

public class UserInfo extends BasePojo implements Serializable {

	
	private static final long serialVersionUID = -7851575539868317111L;
	
	/**
	 * 用户名id
	 */
	private String userId;
	/**
	 * 用户名
	 */
	private String userName;
	/**
	 * 密码
	 */
	private String userPwd;
	/**
	 * 用户状态（0-未启用；1-启用；2-注销；3-被锁）
	 */
	private String status;
	/**
	 * 性别
	 */
	private String gender;
	/**
	 * s 出生日期(yyyy-mm-dd)
	 */
	private String birthDate;
	/**
	 * 证件类型
	 */
	private String cardType;
	/**
	 * 证件号码
	 */
	private String cardNo;
	/**
	 * 办公地址
	 */
	private String officeAdress;
	/**
	 * 办公邮编
	 */
	private String officeZip;
	/**
	 * 办公邮箱
	 */
	private String officeEmail;
	/**
	 * 办公电话
	 */
	private String officeTel;
	/**
	 * 家庭电话
	 */
	private String homeTel;
	/**
	 * 手机号码
	 */
	private String mobileNo;
	/**
	 * 家庭地址
	 */
	private String homeAddress;
	/**
	 * 家庭邮编
	 */
	private String homeZip;
	/**
	 * 政治面貌
	 */
	private String party;
	/**
	 * 民族
	 */
	private String nation;
	/**
	 * 学历
	 */
	private String educationLevel;
	/**
	 * 籍贯
	 */
	private String birthPlace;
	/**
	 * 注销时间
	 */
	private String cancelTime;
	/**
	 * 创建人
	 */
	private String createUser;
	/**
	 * 创建时间
	 */
	private String createTime;
	/**
	 * 修改人
	 */
	private String updateUser;
	/**
	 * 最新修改时间
	 */
	private String updateTime;
	/**
	 * 工作描述
	 */
	private String workeDescribe;
	/**
	 * 入职日期
	 */
	private String inTime;
	/**
	 * 离职日期
	 */
	private String outTime;
	/**
	 * 密码失效时间（时间点）
	 */
	private String invalTime;
	/**
	 * 连续登录错误次数
	 */
	private int errorNum;
	/**
	 * 最近登录时间
	 */
	private String lastLoginTime;

	/**
	 * 年龄
	 */
	private String age;
	/**
	 * 岗位
	 */
	private String postId;
	/**
	 * 岗位类别
	 */
	private String postCategory;
	/**
	 * 岗位序列
	 */
	private String postLevel;
	/**
	 * 职级
	 */
	private String rankId;
	/**
	 * 薪级
	 */
	private String payScale;
	/**
	 * 薪档
	 */
	private String grades;
	/**
	 * 专业技术职称
	 */
	private String technicalTitle;
	/**
	 * 用工类别
	 */
	private String laborCategory;
	/**
	 * 是否在职
	 */
	private String userStatus;
	/**
	 * 用户编码
	 */
	private String userCode;
	
	// ------辅助字段------
	/**
	 * 归属机构
	 */
	private String orgId;
	/**
	 * 机构层级
	 */
	private String orgLevel;
	/**
	 * 归属部门
	 */
	private String deptId;
	/**
	 * 默认角色id
	 */
	private String defaultRole;

	/**
	 * 用户别称
	 */
	private String aliasName;
	
	private String orgName;
	
	private String roleId;
	
	private boolean admin;
	private List<RoleInfo> roles;
	//~~~~~~~~~~~~~~~~~~~~查询页面用到的参数 
	//查询页面用到角色
	private String queryRole;
	
	private String productId;
	
	public UserInfo() {
	}
	public UserInfo(String userId) {
		this.userId = userId;
	}

	public String getQueryRole() {
		return queryRole;
	}

	public void setQueryRole(String queryRole) {
		this.queryRole = queryRole;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPwd() {
		return userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	public String getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(String birthDate) {
		this.birthDate = birthDate;
	}

	public String getCardType() {
		return cardType;
	}

	public void setCardType(String cardType) {
		this.cardType = cardType;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getOfficeAdress() {
		return officeAdress;
	}

	public void setOfficeAdress(String officeAdress) {
		this.officeAdress = officeAdress;
	}

	public String getOfficeZip() {
		return officeZip;
	}

	public void setOfficeZip(String officeZip) {
		this.officeZip = officeZip;
	}

	public String getOfficeEmail() {
		return officeEmail;
	}

	public void setOfficeEmail(String officeEmail) {
		this.officeEmail = officeEmail;
	}

	public String getOfficeTel() {
		return officeTel;
	}

	public void setOfficeTel(String officeTel) {
		this.officeTel = officeTel;
	}

	public String getHomeTel() {
		return homeTel;
	}

	public void setHomeTel(String homeTel) {
		this.homeTel = homeTel;
	}

	public String getMobileNo() {
		return mobileNo;
	}

	public void setMobileNo(String mobileNo) {
		this.mobileNo = mobileNo;
	}

	public String getHomeAddress() {
		return homeAddress;
	}

	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}

	public String getHomeZip() {
		return homeZip;
	}

	public void setHomeZip(String homeZip) {
		this.homeZip = homeZip;
	}

	public String getParty() {
		return party;
	}

	public void setParty(String party) {
		this.party = party;
	}

	public String getNation() {
		return nation;
	}

	public void setNation(String nation) {
		this.nation = nation;
	}

	public String getEducationLevel() {
		return educationLevel;
	}

	public void setEducationLevel(String educationLevel) {
		this.educationLevel = educationLevel;
	}

	public String getBirthPlace() {
		return birthPlace;
	}

	public void setBirthPlace(String birthPlace) {
		this.birthPlace = birthPlace;
	}

	public String getCancelTime() {
		return cancelTime;
	}

	public void setCancelTime(String cancelTime) {
		this.cancelTime = cancelTime;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public String getWorkeDescribe() {
		return workeDescribe;
	}

	public void setWorkeDescribe(String workeDescribe) {
		this.workeDescribe = workeDescribe;
	}

	public String getInTime() {
		return inTime;
	}

	public void setInTime(String inTime) {
		this.inTime = inTime;
	}

	public String getOutTime() {
		return outTime;
	}

	public void setOutTime(String outTime) {
		this.outTime = outTime;
	}

	public String getInvalTime() {
		return invalTime;
	}

	public void setInvalTime(String invalTime) {
		this.invalTime = invalTime;
	}

	public int getErrorNum() {
		return errorNum;
	}

	public void setErrorNum(int errorNum) {
		this.errorNum = errorNum;
	}

	public String getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(String lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getDeptId() {
		return deptId;
	}

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}
	
	
	public String getDefaultRole() {
		return defaultRole;
	}
	public void setDefaultRole(String defaultRole) {
		this.defaultRole = defaultRole;
	}
	public String getAliasName() {
		return aliasName;
	}

	public void setAliasName(String aliasName) {
		this.aliasName = aliasName;
	}

	public List<RoleInfo> getRoles() {
		return roles;
	}

	public void setRoles(List<RoleInfo> roles) {
		this.roles = roles;
	}

	public boolean isAdmin() {
		return admin;
	}

	public void setAdmin(boolean admin) {
		this.admin = admin;
	}

	public String getAge() {
		return age;
	}
	public void setAge(String age) {
		this.age = age;
	}
	public String getPostId() {
		return postId;
	}
	public void setPostId(String postId) {
		this.postId = postId;
	}
	public String getPostCategory() {
		return postCategory;
	}
	public void setPostCategory(String postCategory) {
		this.postCategory = postCategory;
	}
	public String getPostLevel() {
		return postLevel;
	}
	public void setPostLevel(String postLevel) {
		this.postLevel = postLevel;
	}
	public String getRankId() {
		return rankId;
	}
	public void setRankId(String rankId) {
		this.rankId = rankId;
	}
	public String getPayScale() {
		return payScale;
	}
	public void setPayScale(String payScale) {
		this.payScale = payScale;
	}
	public String getGrades() {
		return grades;
	}
	public void setGrades(String grades) {
		this.grades = grades;
	}
	public String getTechnicalTitle() {
		return technicalTitle;
	}
	public void setTechnicalTitle(String technicalTitle) {
		this.technicalTitle = technicalTitle;
	}
	public String getLaborCategory() {
		return laborCategory;
	}
	public void setLaborCategory(String laborCategory) {
		this.laborCategory = laborCategory;
	}
	public String getUserStatus() {
		return userStatus;
	}
	public void setUserStatus(String userStatus) {
		this.userStatus = userStatus;
	}
	public String getUserCode() {
		return userCode;
	}
	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	
	public void setOrgName(String orgName){
		this.orgName = orgName;
	}
	
	public String getOrgName(){
		return orgName;
	}
	
	public String getOrgLevel() {
		return orgLevel;
	}
	public void setOrgLevel(String orgLevel) {
		this.orgLevel = orgLevel;
	}
	
	public String getRoleId() {
		return roleId;
	}
	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}
	
	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}
	@Override
	public String toString() {
		return "UserInfo [userId=" + userId + ", userName=" + userName + ", userPwd=" + userPwd + ", status=" + status
				+ ", gender=" + gender + ", birthDate=" + birthDate + ", cardType=" + cardType + ", cardNo=" + cardNo
				+ ", officeAdress=" + officeAdress + ", officeZip=" + officeZip + ", officeEmail=" + officeEmail
				+ ", officeTel=" + officeTel + ", homeTel=" + homeTel + ", mobileNo=" + mobileNo + ", homeAddress="
				+ homeAddress + ", homeZip=" + homeZip + ", party=" + party + ", nation=" + nation + ", educationLevel="
				+ educationLevel + ", birthPlace=" + birthPlace + ", cancelTime=" + cancelTime + ", createUser="
				+ createUser + ", createTime=" + createTime + ", updateUser=" + updateUser + ", updateTime="
				+ updateTime + ", workeDescribe=" + workeDescribe + ", inTime=" + inTime + ", outTime=" + outTime
				+ ", invalTime=" + invalTime + ", errorNum=" + errorNum + ", lastLoginTime=" + lastLoginTime
				+ ", orgId=" + orgId + ", orgName=" + orgName + ", deptId=" + deptId + ", aliasName=" + aliasName + ", admin=" + admin
				+ ", roles=" + roles + ", age=" + age + ", userStatus=" + userStatus
				+ ", postId=" + postId + ", postCategory=" + postCategory + ", postLevel=" + postLevel + ", rankId=" + rankId + ", userCode=" + userCode
				+ ", payScale=" + payScale + ", grades=" + grades + ", technicalTitle=" + technicalTitle + ", laborCategory=" + laborCategory+ ", defaultRole=" + defaultRole+ ", productId=" + productId+"]";
		
	}

	
}
